package permission

import "gin_demo/internal/model"

type AddPermissionReq struct {
	Name   string `json:"name" binding:"required"`
	Path   string `json:"path" binding:"required"`
	Method string `json:"method" binding:"required"`
}

type UpdatePermissionReq struct {
	Id   uint   `json:"id" binding:"required"`
	Name string `json:"name" binding:"required"`
	Path string `json:"path"  binding:"required"`
}

type SoftDeleteReq struct {
	Id int `json:"id" binding:"required"`
}

type PageList struct {
	Page  int `json:"page" binding:"required"`
	Limit int `json:"limit" binding:"required"`
}

type PermissionRes struct {
	Count int64 `json:"count"`
	List  []model.Permission
}
